import request from '@/utils/request'

// 查询伙伴列列表
export function listPartnership(query) {
  return request({
    url: '/un/partnership/list',
    method: 'get',
    params: query
  })
}

// 查询伙伴列详细
export function getPartnership(pId) {
  return request({
    url: '/un/partnership/' + pId,
    method: 'get'
  })
}

// 新增伙伴列
export function addPartnership(data) {
  return request({
    url: '/un/partnership/add',
    method: 'post',
    data: data
  })
}

// 修改伙伴列
export function updatePartnership(data) {
  return request({
    url: '/un/partnership/edit',
    method: 'post',
    data: data
  })
}

// 删除伙伴列
export function delPartnership(pId) {
  return request({
    url: '/un/partnership/' + pId,
    method: 'delete'
  })
}
